import Mock from 'mockjs'
// const Mock=require('mockjs')
const data=Mock.mock({
    'list|100':[{
        'img':'@image(100x100,@color)',
        'num|100-500':1,
        'title':'@ctitle',
        'desc':'@cword(20)',
    }],
    'img|5':['@image(100x100,@color)']
})
// let list=data.list
// module.exports=data
Mock.mock('/api/list','get',()=>{
    return {
      code:200,
      data:data.list
    }
})
Mock.mock('/api/img','get',()=>{
    return {
        code:200,
        data:data.img
    }
})
